﻿using System;
using System.Globalization;
using System.Threading;
using System.Windows.Forms;
using AccessControl.SecurityMonitoring.Form;
using AccessControl.SecurityMonitoring.Properties;


namespace AccessControl.SecurityMonitoring
{
	static class Program
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main()
		{
            var cultureInfo = new CultureInfo("fa-IR");
            Thread.CurrentThread.CurrentUICulture = cultureInfo;
            InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(cultureInfo);
            Thread.CurrentThread.CurrentUICulture = new FarsiLibrary.Utils.PersianCultureInfo();
            Thread.CurrentThread.CurrentCulture = Thread.CurrentThread.CurrentUICulture;
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MDIForm());
            Settings.Default.Save();
            ManagementReport.Properties.Settings.Default.Save();
		}
	}
}
